//
//  OverviewItemCell.m
//  Test
//
//  Created by Hieu Nguyen Trung on 2/8/13.
//

#import "OverviewItemCell.h"

@implementation OverviewItemCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}



- (void)dealloc {
    [_labelTitle release];
    [_labelPrice release];
    [_labelDays release];
    [_progressView release];
    [super dealloc];
}

-(void) layoutSubviews{
    if (!self.hasProgressView){
        self.progressView.hidden = true;
        CGRect rect = self.labelDays.frame;
        rect.origin.x = 20;
        self.labelDays.frame = rect;
        [self.labelDays setTextAlignment:NSTextAlignmentLeft];
    }
}

@end
